<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var a=new Array(10);
			var b=["apple","banana","grape","pear","water-melon"];
			alert(b.length);
			a[0]="java";
			a[1]="c#";
			a[2]="html";
			a[100]="sql";
			alert(a.length);
			var str=a.join("$");
			alert(str);
			/*删除数组中间的元素*/
			a.splice(2,98,"java advance","css","javascript");
			//a.length=8;
			str=a.join("#");
			alert(str);
		</script>
	</head>
	<body>
	</body>
</html>
